package com.leihao.product.domian;

import javax.validation.constraints.NotBlank;

/**
 * 优选实体
 */
public class Preference {
    /**
     * 优选id
     */
    private Integer preferenceId;
    /**
     * 优选名称
     */
    @NotBlank(message = "优选名称不能为空")
    private String preferenceName;
    /**
     * 推荐状态：0->推荐 1->不推荐
     */
    private Integer preferenceStatus;
    /**
     * 排序
     */
    private Integer isSort;
    /**
     * 逻辑删除  0:正常 1:删除
     */
    private Integer isDelete;

    public Preference(Integer preferenceId, String preferenceName, Integer preferenceStatus, Integer isSort, Integer isDelete) {
        this.preferenceId = preferenceId;
        this.preferenceName = preferenceName;
        this.preferenceStatus = preferenceStatus;
        this.isSort = isSort;
        this.isDelete = isDelete;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public Integer getPreferenceId() {
        return preferenceId;
    }

    public void setPreferenceId(Integer preferenceId) {
        this.preferenceId = preferenceId;
    }

    public String getPreferenceName() {
        return preferenceName;
    }

    public void setPreferenceName(String preferenceName) {
        this.preferenceName = preferenceName;
    }

    public Integer getPreferenceStatus() {
        return preferenceStatus;
    }

    public void setPreferenceStatus(Integer preferenceStatus) {
        this.preferenceStatus = preferenceStatus;
    }

    public Integer getIsSort() {
        return isSort;
    }

    public void setIsSort(Integer isSort) {
        this.isSort = isSort;
    }
}
